<!DOCTYPE html>
<html lang="en">
<head>
  <base href=""/>
  <meta charset="UTF-8"/>
  <title>菜单管理</title>
  <link type="text/css" rel="stylesheet" href="./css/bootstrap.min.css"/>
  <link type="text/css" rel="stylesheet" href="./css/bootstrap-datetimepicker.min.css"/>
  <link type="text/css" rel="stylesheet" href="./css/bootstrap-responsive.min.css"/>
  <link type="text/css" rel="stylesheet" href="./css/common.css"/>
  <link type="text/css" rel="stylesheet" href="./css/weChatMenu.css"/>
  
  <script type='text/javascript' src='./js/jquery-1.10.2.min.js'></script>
  <script type='text/javascript' src='./js/bootstrap.min.js'></script>
  <script type='text/javascript' src='./js/jquery.tips.js'></script>
  <script type="text/javascript" src="./js/page.js"></script>
  <script type="text/javascript" src="./js/common.js"></script>
  <script type="text/javascript" src="./js/messageContent.js"></script>
  <script type='text/javascript' src='./js/weChat/wechatMenu.js'></script>
  <script type='text/javascript' src='./table/weChatTable.js'></script>
</head>
<body>
<div class="top">
	当前位置: 微信 <span class="comSpanTitle">></span>菜单管理
</div>
<div class="ablosulteDiv">
  <div class="scrollBody">
	  <div class="partWhite">
	  	<div class="comHtmlTitle"><span class="borBlue"></span>菜单管理—列表
		  <div class="floatRight">
		  	<form class="form-horizontal" id="searchWechatMenu">
		  		<input id="rows" name="rows" hidden="hidden" value="10"/>
			  	<input id="page" name="page" hidden="hidden" value="1"/>
			</form>
 		   </div>
	    <div class="partTable">
			<div id="menuLeftDiv">
				<div class="col-sm-12" id="menuLeftTop"></div>
				<div id="menuLeftBottom">
					<div id="menuLeftKey">
						<img src="./images/keyboard.png" style="max-height:30px; max-width=30px;"/>
					</div>
					<ul id="menuLeftMessage">
						<li class="menuLeftLi">加载菜单...</li>
						<li class="menuLeftLi">加载菜单...</li>
						<li class="menuLeftLi">加载菜单...</li>
					</ul>
				</div>

			</div>
			<div id="menuRightDiv">
				<div class="rightTitle">
					<div >菜单名称 <a class="deleteMenu" id="deleteMenu">删除菜单</a></div>
				</div>
				<form id="saveForm">
					<div class="col-sm-12 annotation" id="showHideTitle">已添加子菜单，仅可修改菜单名称。</div>
					<div class="col-sm-12 marginTop2Ten">
						<label for="MenuName" class="col-sm-1 control-label partConditionTitle textAlignCenter">菜单名称:</label>
						<div class="col-sm-3 partCondition">
							<input id = "MenuName" name = "MenuName" class="form-control" maxlength="4"/>
							<div class="col-sm-12 partCondition annotation" id="MenuMsg">
								字数不超过4个
							</div>
						</div>
					</div>
					<div class="col-sm-12">
						<label class="col-sm-1 control-label partConditionTitle textAlignCenter">菜单类型:</label>
						<div class="col-sm-11 partCondition">
							<span class="typeRight"><input name="Type" type="radio" value="click" onclick="showCondition()"/>点击类型 </span>
							<span class="typeRight"><input name="Type" type="radio" value="view" onclick="showCondition()"/>网页类型 </span>
							<span class="typeRight"><input name="Type" type="radio" value="miniprogram" onclick="showCondition()"/>小程序 </span>
							<span class="typeRight"><input name="Type" type="radio" value="scancode_push" onclick="showCondition()"/>扫码 </span>
							<span class="typeRight"><input name="Type" type="radio" value="scancode_waitmsg" onclick="showCondition()"/>扫码带提示 </span>
							<span class="typeRight"><input name="Type" type="radio" value="pic_sysphoto" onclick="showCondition()"/>拍照 </span>
							<span class="typeRight"><input name="Type" type="radio" value="pic_photo_or_album" onclick="showCondition()"/>拍照或相册 </span>
							<span class="typeRight"><input name="Type" type="radio" value="pic_weixin" onclick="showCondition()"/>微信相册 </span>
						</div>
					</div>
					<div class="col-sm-12">
						<label for="Enabled" class="col-sm-2 control-label partConditionTitle">是否启用:</label>
						<div class="col-sm-3 partCondition">
							<select class="form-control" id="Enabled" name="Enabled">
								<option value="1">是</option>
								<option value="0">否</option>
							</select>
						</div>
					</div>
					<div id="showHideParent">
						<div class="col-sm-12 menuDetalisMsg">
						<div class="col-sm-12 rightTitle" style="margin-bottom: 10px;">
							<div >菜单详情</div>
						</div>
						<div class="col-sm-12">
							<label for="MenuKey" class="col-sm-2 control-label partConditionTitle">菜单Key:</label>
							<div class="col-sm-3 partCondition">
								<input id = "MenuKey" name = "MenuKey" class="form-control"/>
							</div>
						</div>
						<div class="col-sm-12" hidden="hidden" id="appIDdiv">
							<label for="AppID" class="col-sm-2 control-label partConditionTitle">小程序appid:</label>
							<div class="col-sm-3 partCondition">
								<input id = "AppID" name = "AppID" class="form-control"/>
							</div>
						</div>
						<div class="col-sm-12" hidden="hidden" id="pagePathdiv">
							<label for="PagePath" class="col-sm-2 control-label partConditionTitle">小程序路径:</label>
							<div class="col-sm-3 partCondition">
								<input id = "PagePath" name = "PagePath" class="form-control"/>
							</div>
						</div>
						<div class="col-sm-12">
							<label for="Url" class="col-sm-2 control-label partConditionTitle">访问路径:</label>
							<div class="col-sm-5 partCondition">
								<input id = "Url" name = "Url" class="form-control"/>
							</div>
						</div>
					</div>
					</div>
				</form>
			</div>
		</div>
		<div class="partBtn" hidden="hidden">
		  <div class="partTurnPage">
	          <ul class="list-inline">
	              <li id="total"></li>
	              <li class="turnPage"></li>
	          </ul>
	      </div>
		 </div>
	  </div>
	  <div class="textCenter">
		  <button class="btn move" id="move1" onclick="moveFlag('move2', 'move1')">移动</button>
		  <button class="btn move" id="move2" onclick="moveFlag('move1', 'move2')" hidden="hidden">取消移动</button>
		  <button id="saveOrUpdate" class="btn">修改并保存</button>
		  <button class="btn" style="float: right;" onclick="publish()">发布</button>
	  </div>
  </div>
 </div>
</div>
 <!-- 添加弹出框 -->
  <div aria-hidden="true" aria-labelledby="myModalLabel" role="dialog" data-backdrop="." id="save" tabindex="-1" class="modal fade popup">
	<div class = "popupTable">
	  <div class="modal-header titleAll" id="titleAll">
		<button type="button" class="close" data-dismiss="modal" aria-label="Close">
		  <span aria-hidden="true" class="close">&times;</span>
		</button>
		<h4 class="modal-title" id = "title"></h4>
	  </div>
	  	  <input id = "menuID" name = "MenuID" value="1" hidden = "hidden"/>
		  <input id = "orderNumber" name = "OrderNumber" value="1" hidden = "hidden"/>
		  <input id="LimitCount" name="LimitCount" hidden="hidden" value=""/>
		  <div class="col-sm-12 overFlowHide">
           	<div class="comBodySave overFlowHide textAlignLeft" id="detailOneBody"></div>
          </div>
	  <div class="col-sm-12" id="btnSureModal">
		<button id="confirm" type="button" class="btn btn-primary"  onclick="$ajax(getUrl, 'saveForm', saveWechatMenu, confirm)">确定</button>
		<button type="button" class="btn btn-danger" data-dismiss="modal">取消</button>
	  </div>
    </div>
  </div>
</body>
</html>
